home *** CD-ROM | disk | FTP | other *** search
- ; $VER: FinalWriter-030_Install 1.1 (30.12.94)
-
- (set version "3.0")
-
- (onerror (exit (quiet)))
-
- (message
- "\n\nFinalWriter " version "-030 Deutsch"
- "\nCopyright 1994 Martin Berndt"
- "\n\n\nDieser Patch ist SHAREWARE !"
- "\n\nBitte beachten sie das \"Liesmich.txt\" File."
- )
-
- (set @default-dest
- (askdir
- (prompt "Wo befindet sich ihr FinalWriter Verzeichnis?")
- (help @askfile-help)
- (default "SYS:FinalWriter")
- (newpath)
- )
- )
-
- (set backup
- (askoptions
- (prompt "Optionen")
- (help @askoptions-help)
- (choices "Backup Files anlegen")
- )
- )
-
- (set n 0)
- (set percent 0)
-
- (while (set name (select n "FinalWriter" "swpost.library" "swshell.library"
- "cachemap.library" "qfont.library" "")) (
- (set n (+ n 1))
- (complete percent)
- (if (= n 1)
- (set file name)
- (set file (cat "FWLibs/" name))
- )
- (set newfile (tackon @default-dest file))
- (set oldfile (cat newfile ".bak"))
- (if (= (exists newfile) 0)
- (abort name " wurde nicht gefunden!")
- )
- (rename newfile oldfile)
- (if (< n 4) (
- (working "\n\n" newfile)
- (if (<> (run (cat "spatch \"-o" newfile "\" -p" name ".pch \"" oldfile "\"")) 0) (
- (rename oldfile newfile)
- (abort "Falsche Version!")
- ))
- (set percent (+ percent 30))
- ) (
- (copyfiles
- (prompt "Kopiere " name)
- (help @copyfiles-help)
- (source name)
- (dest (tackon @default-dest "FWLibs"))
- (optional "force" "askuser")
- )
- (set percent (+ percent 5))
- ))
- (if (= backup 0) (delete oldfile))
- ))
-